package 排序算法.测试;

public class TimeUtil {
    private long startTime;
    private long endTime;

    public void start() {
        startTime = System.currentTimeMillis();
    }
    public void stop() {
        endTime = System.currentTimeMillis();
    }

    public void show() {
        System.out.println(endTime - startTime + "ms");
    }

    public long getPassedTime() {
        return endTime - startTime;
    }
}